package xyz.whiteblue.render;

import java.io.IOException;

/**
 * Created by WhiteBlue on 15/6/15.
 */
public class RedirectRender extends Render {
    private String url;

    public RedirectRender(String url) {
        this.url = url;
    }

    @Override
    public void render() {
        try {
            response.sendRedirect(url);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
